<?php 
require 'viewmodel.php';
class controller{
	protected $viewmodel;
	function __construct(){
		$this->viewmodel = new viewmodel($_GET['c'].'/'.$_GET['m'].'.php');
	}
	public function assign($var,$value){
		$this->viewmodel->assign($var,$value);
	}
	public function display(){
		$this->viewmodel->display();
	}
	
}


 ?>